package com.xms.configuration.service;

import com.xms.configuration.entity.Settings;
import com.xms.core.exception.XmsException;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  ISettingSaveService
 * </p>
 *
 * @author migo
 * @since 2021-08-29
 */
public interface ISettingSaveService {
    boolean saveMany(List<Settings> entities) throws SQLException, XmsException;
    <T> boolean save(T setting) throws IllegalAccessException, XmsException, SQLException;
    <T> boolean save(T setting, String nameSpace) throws IllegalAccessException, XmsException, SQLException;
    boolean save(HashMap<String, Object> keyValues) throws XmsException, SQLException;
}
